"""
短信发送
"""

from fastapi import APIRouter, Depends

from forward.api.h5.schemas.sms import SmsSendInSchema
from forward.api.h5.service.sms import  SmsSendService
from forward.http_base import unified_resp

router = APIRouter(prefix='/sms')


@router.post('/send')
@unified_resp
async def sms_send(sms_in: SmsSendInSchema, sms_service: SmsSendService = Depends(SmsSendService)):
    """
    pass
    :param file_in:
    :return:
    """
    return await sms_service.send(sms_in)
